<template>
  <div class="all">
    <van-nav-bar
      fixed
      placeholder
      safe-area-inset-top
      title="位于"
      left-arrow
      @click-left="back"
    />
    <div class="mapbox">
      <iframe class="viewbox" :src="reportUrl" frameborder="0"></iframe>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      reportUrl: "",
    };
  },
  created() {
    this.reportUrl = this.$route.query.url;
  },
  methods: {
    back() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.all {
  height: 100%;
  display: flex;
  flex-direction: column;
  .mapbox {
    width: 100%;
    flex: 1;
    .viewbox {
      width: 100%;
      height: 100%;
    }
  }
}
</style>